﻿<UserControl x:Class="ITPaloozaPCL.DesktopApp.Controls.PCLBasedDesktopControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:ViewModels="clr-namespace:ITPaloozaPCL.DesktopApp.ViewModels"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/ListViewItemTemplate.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <ViewModels:MainViewModel x:Key="InternalViewModel" />
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid DataContext="{Binding Source={StaticResource InternalViewModel}}">
        <ListView ItemsSource="{Binding PriceList}" ItemTemplate="{Binding Source={ StaticResource ListViewDataTemplate}}">
        </ListView>
    </Grid>
</UserControl>